package cn.gameo2o.test;

import java.util.HashMap;
import java.util.Map;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import cn.gameo2o.dao.plgl.PingLunGuanLiDAO;
import cn.gameo2o.dao.xzgl.XiaoZuGuanLiDAO;
import cn.gameo2o.pojo.O2o_commentmanage;
import cn.gameo2o.pojo.O2o_game;
import cn.gameo2o.pojo.O2o_group;

public class test {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
			ApplicationContext context=new ClassPathXmlApplicationContext("applicationContext.xml");
			String[] beanDefinitionNames = context.getBeanDefinitionNames();
			for (String string : beanDefinitionNames) {
				System.out.println(string);
			}
//			XiaoZuGuanLiDAO dao=context.getBean(XiaoZuGuanLiDAO.class);
//			Map<String,Object> params=new HashMap<String, Object>();
//			int save = dao.delete(12);
//			System.out.println(save);
//			PingLunGuanLiDAO dao = context.getBean(PingLunGuanLiDAO.class);
//		     O2o_commentmanage plById = dao.findPlById(1);
//		     System.out.println(plById.getContent());
//			PingLunGuanLiDAO bean = (PingLunGuanLiDAO) context.getBean("pingLunGuanLiService");
//			O2o_commentmanage findPlById = bean.findPlById(2);
//			System.out.println(findPlById.getCommenttime());
	}

}
